<template>
  <div class="my">
    <h1>{{ msg }}</h1>
    <a @click ="ttt(111)">test</a>
    <input type="button" value="点我" @click="test(msg)">
    <div class="demo" v-for="list in goodsList">
      <span class="demo-span">{{list}}</span>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'HomePage',
    data () {
      return {
        msg: ' this is HomePage',
        goodsList: [1, 2, 3, 4, 5, 6, 7, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 119]
      }
    },
    methods: {
      test (param) {
        console.log(param)
        this.msg = 'hello I am laoqi DAYE'
      },
      ttt (param) {
        console.log(param)
        this.msg = 'i want to say:hello I am laoqi DAYE'
      }
    }
  }
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style>
</style>
